export const markingPos = [
  {
    name: '总部',
    level: 0,
    showLabel: false,
    showMask: true,
    pos: [116.4089, 39.9554],
    children: [
      {
        name: '西安公司',
        level: 1,
        showLabel: true,
        showMask: true,
        pos: [108.957069, 34.19595]
      },
      {
        name: '西北公司',
        level: 1,
        showLabel: true,
        showMask: true,
        pos: [109.843246, 40.652744],
        children: [
          {
            name: '包头分公司',
            level: 2,
            showLabel: false,
            showMask: true,
            pos: [109.58, 40.35]
          },
          {
            name: '锡林浩特公司',
            level: 2,
            showLabel: false,
            showMask: true,
            pos: [116.02428, 43.9511]
          },
          {
            name: '甘泉办事处',
            level: 2,
            showLabel: false,
            showMask: true,
            pos: [109.58, 40.35]
          },
          {
            name: '呼和浩特办事处',
            level: 2,
            showLabel: false,
            showMask: true,
            pos: [111.48, 40.49]
          }
        ]
      },
      {
        name: '准格尔公司',
        level: 2,
        showLabel: true,
        showMask: false,
        pos: [111.15, 39.51]
      },
      {
        name: '华南公司',
        level: 1,
        showLabel: true,
        showMask: true,
        pos: [113.328629, 23.135592],
        children: [
          {
            name: '广州公司',
            level: 2,
            showLabel: false,
            showMask: true,
            pos: [113.36, 23.1]
          },
          {
            name: '高栏港办事处',
            level: 2,
            showLabel: false,
            showMask: true,
            pos: [113.23, 21.96]
          },
          {
            name: '福建办事处',
            level: 2,
            showLabel: false,
            showMask: true,
            pos: [118.13, 24.53]
          },
          {
            name: '广西办事处',
            level: 2,
            showLabel: false,
            showMask: true,
            pos: [108.36, 22.81]
          }
        ]
      },
      {
        name: '华中公司',
        level: 1,
        showLabel: true,
        showMask: true,
        pos: [114.321938, 30.567261],
        children: [
          {
            name: '安徽办事处',
            level: 2,
            pos: [117.302635, 31.857002],
            showLabel: false,
            showMask: true
          }
        ]
      },
      {
        name: '东北公司',
        level: 1,
        pos: [126.5, 45.79],
        showLabel: true,
        showMask: true,
        children: [
          {
            name: '海拉尔公司',
            level: 2,
            pos: [119.771721, 49.214722],
            showLabel: false,
            showMask: true
          },
          {
            name: '辽宁办事处',
            level: 2,
            pos: [123.42, 41.75],
            showLabel: false,
            showMask: true
          },
          {
            name: '吉林办事处',
            level: 2,
            pos: [125.31, 43.89],
            sshowLabel: false,
            showMask: true
          }
        ]
      },
      {
        name: '华东公司',
        showLabel: true,
        showMask: true,
        pos: [121.47247, 31.21541],
        level: 1,
        children: [
          {
            name: '江苏办事处',
            level: 2,
            pos: [118.75, 32.06],
            showLabel: false,
            showMask: true
          },
          {
            name: '浙江办事处',
            level: 2,
            pos: [120.225391, 30.21515],
            showLabel: false,
            showMask: true
          }
        ]
      }
    ]
  },
  {
    name: '山东公司',
    level: 2,
    pos: [117.04, 36.63],
    showLabel: true,
    showMask: false
  },
  {
    name: '华北公司',
    level: 0,
    pos: [116.4089, 39.9554],
    showLabel: true,
    showMask: false,
    children: [
      {
        name: '昌运公司',
        level: 2,
        pos: [116.34, 39.92],
        showLabel: false,
        showMask: true
      },
      {
        name: '石家庄办事处',
        level: 2,
        pos: [114.29, 38.02],
        showLabel: false,
        showMask: true
      },
      {
        name: '唐山办事处',
        level: 2,
        pos: [118.184172, 39.68365],
        showLabel: false,
        showMask: true
      },
      {
        name: '首路公司',
        level: 2,
        pos: [116.23128, 40.22077],
        showLabel: false,
        showMask: true
      },
      {
        name: '沧州公司',
        level: 2,
        pos: [116.86638, 38.31404],
        showLabel: false,
        showMask: true
      }
    ]
  },
  {
    name: '香港公司',
    level: 0,
    showLabel: true,
    showMask: false,
    pos: [116.4089, 39.9554]
  },
  {
    name: '销售一部',
    level: 0,
    showLabel: true,
    showMask: false,
    pos: [116.4089, 39.9554]
  }
]
interface DotList {
  name: string;
  type: number;
  pos: Array<number>;
}
export const getDotListPos = () => {
  const powerData: DotList[] = []
  const powerPop: any = [
    [111.15, 31.89],
    [109.78, 39.6],
    [120.38, 36.95],
    [117.2, 29.98],
    [127.97, 43.33],
    [116.13, 33.38],
    [118.87, 42.28],
    [117.33, 36.07],
    [118.52, 36.89],
    [102.18, 38.52],
    [116.58, 24.93],
    [110.53, 36.86],
    [114.46, 35.42],
    [113.97, 35.88],
    [115.05, 32.08],
    [116.11, 29.97],
    [112.02, 27.93],
    [115.17, 24.55],
    [118.05, 44.2],
    [111.48, 31.22],
    [101.71, 26.58],
    [109.12, 37.5],
    [124.93, 42.97],
    [117.15, 34.46],
    [115.39, 24.78],
    [113.63, 26.68],
    [126.37, 47.13],
    [111.14, 31.45],
    [116.79, 25.51],
    [113.39, 37.52],
    [118.33, 26.08],
    [115.97, 39.64],
    [119.45, 40.38],
    [124.97, 42.97],
    [102.52, 24.35],
    [124.87, 41.82],
    [113.57, 37.85],
    [115.94, 37.17],
    [116.14, 30.86],
    [116.69, 24.39],
    [119.95, 36.89],
    [118.56, 29.86],
    [110.37, 29.08],
    [114.35, 25.55],
    [121.01, 36.56],
    [119.16, 34.59],
    [120.32, 39.82],
    [116.74, 31.64],
    [113.75, 27.04],
    [114.68, 24.73],
    [118.15, 33.5],
    [119.95, 32.49],
    [108.33, 22.84],
    [122.18, 42.65],
    [114.45, 23.09],
    [118.26, 39.91],
    [111.75, 37.8],
    [113.62, 26.84],
    [118.52, 39.13],
    [113.23, 25.16],
    [109.47, 36.6],
    [112.53, 37.87],
    [113.01, 23.7],
    [113.38, 22.52],
    [115.73, 25.04],
    [118.73, 46.86],
    [122.14, 43.17],
    [113.08, 36.18],
    [114.07, 24.62],
    [113.52, 25.39],
    [118.43, 39.96],
    [108.72, 34.36],
    [109.11, 35.09],
    [119.97, 44.77],
    [113.11, 25.05],
    [110.35, 26.02],
    [113.06, 28.61],
    [117.53, 36.72],
    [112.44, 27.05],
    [121.62, 38.92],
    [111.55, 36.08],
    [110.63, 31.16],
    [106.39, 39.04],
    [123.38, 41.8],
    [120.62, 45.32],
    [110.88, 21.68],
    [120.76, 39.77],
    [124.35, 43.88],
    [109.06, 36.22],
    [106.27, 38.47],
    [120.21, 30.87],
    [111.19, 34.76],
    [121.15, 44.13],
    [115.89, 28.68],
    [109.43, 24.33],
    [109.59, 18.27],
    [104.72, 29.03],
    [124.57, 43.87],
    [111.95, 21.85],
    [105.39, 28.91],
    [101.74, 36.56],
    [104.56, 29.77],
    [111.65, 40.82],
    [104.06, 30.67],
    [126.36, 44.12],
    [119.44, 32.23],
    [110.28, 25.29],
    [110.91, 29.96],
    [119.82, 31.36],
    [109.12, 21.49],
    [108.95, 34.27],
    [119.56, 31.74],
    [113.49, 37.46],
    [127.58, 46.63],
    [106.95, 27.74],
    [120.58, 36.51],
    [119.42, 32.39],
    [119.95, 31.79],
    [111.14, 36.62],
    [106.54, 29.59],
    [120.47, 29.36],
    [118.78, 32.04],
    [113.03, 37.36],
    [106.71, 26.57],
    [110.29, 31.59],
    [123.73, 41.35],
    [125.77, 45.59],
    [109.56, 34.52],
    [118.48, 31.56],
    [107.15, 34.38],
    [113.21, 35.24],
    [118.16, 31.95],
    [116.46, 39.92],
    [117.27, 34.26],
    [115.72, 37.72],
    [123.98, 40.58],
    [104.73, 31.48],
    [112.68, 43.77],
    [117.57, 34.86],
    [120.19, 36.66],
    [108.05, 36.78],
    [122.85, 41.12],
    [118.48, 31.43],
    [124.06, 41.68],
    [114.35, 36.1],
    [114.35, 34.79],
    [117.88, 36.65],
    [104.37, 31.13],
    [115.65, 28.01],
    [115.97, 29.71],
    [114.47, 36.6],
    [118.72, 31.23],
    [103.73, 36.03],
    [115.83, 38.33],
    [118.35, 31.05],
    [106.18, 30.93],
    [117.25, 33.13],
    [117.95, 31.07],
    [117.13, 36.18],
    [117.23, 29.71],
    [113.65, 34.76],
    [126.63, 45.75],
    [115.97, 28.45],
    [117.38, 33.33],
    [116.02, 32.63],
    [113.29, 33.75],
    [114.48, 37.05],
    [116.29, 37.45],
    [116.59, 35.38],
    [112.21, 30.65],
    [111.37, 30.76],
    [118.06, 35.78],
    [115.92, 28.45],
    [112.44, 34.74],
    [115.57, 32.95],
    [113.16, 27.83],
    [114.48, 30.03],
    [116.67, 30.19],
    [111.69, 29.05],
    [115.48, 38.85],
    [112.91, 27.87],
    [116.64, 29.12],
    [113.09, 29.37],
    [113.98, 28.21],
    [115.88, 28.97],
    [116.67, 34.53],
    [115.56, 35.25],
    [117.27, 31.86],
    [114.31, 30.52],
    [125.03, 45.58],
    [126.67, 47.53],
    [125.56, 47.25],
    [124.27, 48.86],
    [122.31, 47.52],
    [125.03, 46.58]
  ]
  const buildingMaterialPop: any = [
    [116.55, 32.89],
    [111.78, 32.6],
    [117.38, 35.35],
    [109.2, 27.98],
    [114.97, 35.33],
    [106.13, 26.38],
    [118.87, 37.28],
    [115.33, 26.07],
    [115.52, 36.89],
    [112.18, 30.52],
    [118.58, 28.93],
    [107.53, 32.86],
    [112.46, 30.42],
    [119.97, 30.88],
    [117.05, 32.08],
    [110.58, 32.93],
    [108.53, 27.86],
    [118.46, 26.42],
    [115.97, 30.88],
    [116.05, 32.08]
  ]
  const chemicalIndustryPop: any = [
    [106.15, 31.89],
    [108.78, 39.6],
    [111.38, 36.95],
    [116.2, 29.98],
    [127.97, 47.33],
    [116.13, 32.38],
    [117.17, 28.28],
    [108.33, 23.57],
    [116.52, 36.89],
    [112.18, 38.52],
    [115.58, 24.93],
    [112.53, 36.86],
    [114.46, 24.42],
    [112.97, 21.98],
    [115.05, 34.08],
    [109.11, 21.97],
    [112.02, 22.93],
    [115.17, 23.55],
    [125.05, 44.2],
    [111.48, 33.22],
    [105.71, 26.98],
    [114.16, 24.59],
    [125.93, 44.97],
    [117.15, 33.46],
    [114.79, 24.78],
    [112.53, 23.68],
    [123.37, 47.13],
    [113.14, 30.45],
    [115.69, 24.51],
    [113.39, 25.52],
    [117.33, 31.08],
    [123.97, 41.64],
    [122.45, 50.38],
    [124.97, 42.97],
    [108.52, 26.35],
    [120.87, 48.82],
    [106.57, 37.85],
    [109.94, 37.17],
    [116.14, 32.86],
    [116.69, 33.39],
    [118.35, 35.39],
    [118.96, 30.86],
    [112.37, 29.08],
    [114.35, 28.55],
    [120.01, 50.56],
    [114.16, 34.59],
    [110.32, 39.82],
    [115.74, 36.64],
    [116.75, 31.04],
    [115.68, 34.73],
    [117.15, 33.5]
  ]
  // const metallurgyPop: any = []
  for (let i = 0; i < 140; i++) {
    const data = {
      name: '总部',
      type: 0,
      pos: powerPop[i]
    }
    powerData.push(data)
  }
  for (let i = 0; i < 20; i++) {
    const data = {
      name: '总部',
      type: 1,
      pos: buildingMaterialPop[i]
    }
    powerData.push(data)
  }
  for (let i = 0; i < 50; i++) {
    const data = {
      name: '总部',
      type: 2,
      pos: chemicalIndustryPop[i]
    }
    powerData.push(data)
  }
  for (let i = 140; i < 170; i++) {
    const data = {
      name: '总部',
      type: 3,
      pos: powerPop[i]
    }
    powerData.push(data)
  }
  for (let i = 170; i < 195; i++) {
    const data = {
      name: '总部',
      type: 4,
      pos: powerPop[i]
    }
    powerData.push(data)
  }
  // console.log(powerData);
  return powerData
}

export const dotListPos = [
  {
    name: '总部',
    type: 0,
    pos: [116.4089, 39.9554]
  },
  {
    name: '总部',
    type: 1,
    pos: [108.57, 34.11]
  },
  {
    name: '总部',
    type: 2,
    pos: [109.58, 40.35]
  },
  {
    name: '总部',
    type: 3,
    pos: [113.3355, 23.1415]
  },
  {
    name: '总部',
    type: 0,
    pos: [104, 38]
  },
  {
    name: '总部',
    type: 1,
    pos: [126.5, 45.79]
  },
  {
    name: '总部',
    type: 2,
    pos: [121.47, 31.22]
  },
  {
    name: '总部',
    type: 3,
    pos: [115.09, 30.2]
  },
  {
    name: '总部',
    type: 0,
    pos: [110.79, 32.65]
  },
  {
    name: '总部',
    type: 1,
    pos: [111.3, 30.7]
  }
]

export const provinceList = [
  // 23省
  { name: '甘肃', fullName: '甘肃省', heat: 0.1, pos: [104.03, 34.93] },
  { name: '青海', fullName: '青海省', heat: 0.3, pos: [95.74, 36.06] },
  { name: '四川', fullName: '四川省', heat: 0.3, pos: [102.36, 30.27] },
  { name: '河北', fullName: '河北省', heat: 0.5, pos: [114.99, 38.03] },
  { name: '云南', fullName: '云南省', heat: 0.5, pos: [100.73, 24.54] },
  { name: '贵州', fullName: '贵州省', heat: 0.5, pos: [106.71, 26.57] },
  { name: '湖北', fullName: '湖北省', heat: 0.5, pos: [112.31, 30.72] },
  { name: '河南', fullName: '河南省', heat: 1, pos: [113.05, 33.66] },
  { name: '山东', fullName: '山东省', heat: 1, pos: [117, 35.65] },
  { name: '江苏', fullName: '江苏省', heat: 10, pos: [118.78, 33.24] },
  { name: '安徽', fullName: '安徽省', heat: 1, pos: [116.67, 31.86] },
  { name: '浙江', fullName: '浙江省', heat: 10, pos: [119.49, 28.96] },
  { name: '江西', fullName: '江西省', heat: 1, pos: [114.98, 27.68] },
  { name: '福建', fullName: '福建省', heat: 10, pos: [117.3, 26.04] },
  { name: '广东', fullName: '广东省', heat: 10, pos: [113.13, 23.56] },
  { name: '湖南', fullName: '湖南省', heat: 0.5, pos: [111.05, 27.61] },
  { name: '海南', fullName: '海南省', heat: 0.5, pos: [109.38, 19.32] },
  {
    name: '辽宁',
    fullName: '辽宁省',
    heat: 10,
    pos: [121.98, 41.45],
    camera: { x: 0.84, y: 0.65, z: 1.57 }
  },
  {
    name: '吉林',
    fullName: '吉林省',
    heat: 0.5,
    pos: [125.55, 42.98],
    camera: { x: 0.98, y: 0.78, z: 1.57 }
  },
  {
    name: '黑龙江',
    fullName: '黑龙江省',
    heat: 10,
    pos: [126.63, 46.75],
    camera: { x: 1.15, y: 0.9, z: 1.85 }
  },
  { name: '山西', fullName: '山西省', heat: 0.5, pos: [111.83, 36.87] },
  { name: '陕西', fullName: '陕西省', heat: 0.5, pos: [107.97, 33.77] },
  { name: '台湾', fullName: '台湾省', heat: 10, pos: [120.3, 23.53] },
  // 4直辖市
  { name: '北京', fullName: '北京市', heat: 1, pos: [116.21, 39.99] },
  { name: '上海', fullName: '上海市', heat: 10, pos: [121.48, 31.02] },
  { name: '重庆', fullName: '重庆市', heat: 0.5, pos: [106.94, 29.49] },
  { name: '天津', fullName: '天津市', heat: 1, pos: [117.5, 38.88] },
  // 5自治区
  {
    name: '内蒙古',
    fullName: '内蒙古',
    heat: 0.5,
    pos: [118.65, 43.82],
    camera: { x: 0.84, y: 0.72, z: 1.98 }
  },
  { name: '广西', fullName: '广西壮族自治区', heat: 1, pos: [108.33, 23.84] },
  { name: '西藏', fullName: '西藏自治区', heat: 0.1, pos: [86.11, 31.97] },
  { name: '宁夏', fullName: '宁夏回族自治区', heat: 5, pos: [105.57, 37.17] },
  {
    name: '新疆',
    fullName: '新疆维吾尔自治区',
    heat: 0.1,
    pos: [85.68, 40.77]
  },
  // 2特别行政区
  { name: '香港', fullName: '香港', heat: 10, pos: [115.17, 22.28] },
  { name: '澳门', fullName: '澳门', heat: 10, pos: [112.54, 21.69] },
  { name: '日本', fullName: '日本', heat: 10, pos: [135.5, 34.42] },
  { name: '韩国', fullName: '韩国', heat: 10, pos: [126.58, 35.33] }
]
